package com.rw.test.restful.service;

import com.rw.engine.asynchronous.anno.AsyncMethod;
import org.springframework.stereotype.Component;

@Component
public class AsyncService {
    @AsyncMethod
    public void bigTask() {
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }

        System.out.println("Task done! " + System.currentTimeMillis());
    }
}
